package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 弹幕实体对象 hz_danmaku
 *
 * @author ruoyi
 * @date 2021-08-08
 */
public class HzDanmaku extends BaseEntity {
    private static final long serialVersionUID = 1L;


    public HzDanmaku() {

    }

    public HzDanmaku(String uploadInfoId, Long userId, String sengMsg, String msgSeek) {
        this.uploadInfoId = Long.parseLong(uploadInfoId);
        this.userId = userId;
        this.sengMsg = sengMsg;
        this.msgSeek = msgSeek;
        this.sendTime = new Date();
    }

    /**
     * 弹幕唯一主键
     */
    private Long id;

    /**
     * 上传信息id
     */
    private Long uploadInfoId;

    /**
     * 发送人id
     */
    private Long userId;

    /**
     * 发送的消息
     */
    @Excel(name = "发送的消息")
    private String sengMsg;

    /**
     * 发送时间,在视频的第几分几秒
     */
    private String msgSeek;

    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUploadInfoId(Long uploadInfoId) {
        this.uploadInfoId = uploadInfoId;
    }

    public Long getUploadInfoId() {
        return uploadInfoId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSengMsg(String sengMsg) {
        this.sengMsg = sengMsg;
    }

    public String getSengMsg() {
        return sengMsg;
    }

    public void setMsgSeek(String msgSeek) {
        this.msgSeek = msgSeek;
    }

    public String getMsgSeek() {
        return msgSeek;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("uploadInfoId", getUploadInfoId())
                .append("userId", getUserId())
                .append("sengMsg", getSengMsg())
                .append("msgSeek", getMsgSeek())
                .append("sendTime", getSendTime())
                .toString();
    }
}
